package com.xzx.car_accessories.dao;

import java.text.SimpleDateFormat;
import java.util.Date;
/**
 * @author: geeshaw
 * @date: 2021/7/11 14:42
 * @email: shaw@bupt.edu.cn
 * @desc: 数据库工具函数
 **/


public class utilDao {

    static public String get_current_date() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
        System.out.println("Asia/Shanghai: " + sdf.format(date));
        return sdf.format(date);
    }

    public static void main(String[] args) {
        get_current_date();
    }
}
